﻿package Message.Command
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ECmdCoreCommand extends Object
    {
        public var __value:int;
        public static const _ECmdCoreChannelUpdate:int = 5000;
        public static const _ECmdCoreCellUpdate:int = 5001;
        public static const _ECmdCoreKillUser:int = 5002;
        public static const _ECmdCoreStopServer:int = 5003;
        public static const _ECmdCoreStartServer:int = 5004;
        public static const _ECmdCoreCreateServer:int = 5005;

        public function ECmdCoreCommand(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ECmdCoreCommand
        {
            return new ECmdCoreCommand(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ECmdCoreCommand
        {
            var _loc_2:* = param1.readShort();
            if (_loc_2 < 0 || _loc_2 >= 5006)
            {
                throw new MarshalException();
            }
            return ECmdCoreCommand.convert(_loc_2);
        }// end function

    }
}
